package javaLab.customClassLoader;

import java.lang.reflect.Method;

public class CCLRun {
	public static void main(String[] args) throws Exception{
		/*if(args.length == 0){
			System.out.println("Name of the class is required");
			return;
		}
		String program = args[0];*/
		String program = "javaLab.customClassLoader.App";
		CustomClassLoader classLoader = new CustomClassLoader();
		Class programClass = classLoader.loadClass(program);
		Class mainArgType[] = {(new String[0]).getClass()};
		Method main = programClass.getMethod("main", mainArgType);
		main.invoke(null, new String[1]);
	}
}
